package com.lovo.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pc")
@RefreshScope
public class PCIndexController {
    @Value("${myname}")
    private String myname;
    @GetMapping("/index")
    public Object index(){
        return "PC的应用："+myname;
    }
}
